pl010 & pl011 have different control register offsets, setting it as per
the pl01x type.
Signed-off-by: Vikas Manocha <[email protected]>
Acked-by: Simon Glass <[email protected]>
}
#endif
- /* First, disable everything */
- writel(0, ®s->pl010_cr);
-
switch (type) {
case TYPE_PL010:
+ /* disable everything */
+ writel(0, ®s->pl010_cr);
break;
case TYPE_PL011:
+ /* disable everything */
+ writel(0, ®s->pl011_cr);
break;
default:
return -EINVAL;